package cn.com.cfae.iras.doc.analyze.parse.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 运营能力
 */
public class YYNLModel extends BizBaseModel {
    /**
     * 运营能力
     */
    public static String MODEL_NAME = "YYNL";

    private static Map<String, String> items = new HashMap<>();


    /**
     * 应收账款周转率
     */
    private static String YSZKZZL = "YSZKZZL";
    /**
     * 应收账款周转天数
     */
    private static String YSZKZZTS = "YSZKZZTS";
    /**
     * 存货周转率
     */
    private static String CHZZL = "CHZZL";
    /**
     * 存货周转天数
     */
    private static String CHZZTS = "CHZZTS";
    /**
     * 营业周期
     */
    private static String YYZQ = "YYZQ";
    /**
     * 总资产周转率
     */
    private static String ZZCZZL = "ZZCZZL";
    /**
     * 净资产周转率
     */
    private static String JZCZZL = "JZCZZL";
    private static String LDZCZZL = "LDZCZZL";
    private static String GDZCZZL = "GDZCZZL";

    static {
        items.put(YSZKZZL, "应收账款周转率|应收帐款周转率");
        items.put(YSZKZZTS, "应收账款周转天数|应收账款周转次数");
        items.put(CHZZL, "存货周转率");
        items.put(CHZZTS, "存货周转天数|存货周转次数");
        items.put(YYZQ, "营业周期");
        items.put(ZZCZZL, "总资产周转率|总资产周转次数");
        items.put(JZCZZL, "流动资产周转率");
        items.put(LDZCZZL, "固定资产周转率");
        items.put(GDZCZZL, "净资产周转率");
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }

}
